{|include file="header.htm"|}

<table width="100%" border="0">
<form method="get" action="index.php">
	<tr class="sectiontitle">
		<td colspan="12">
		<input type="hidden" name="module" value="index" />
		<input type="hidden" name="act" value="standings" />
		{|$lang.copy|}
		<select name="cid" class="input" onchange="javascript:form.submit();">	
		{|html_options options=$copyarray selected=$getval.cid|}			
		</select>
		{|$lang.group|}
		<select name="groupid" class="input" onchange="javascript:form.submit();">
		{|html_options options=$groupArray selected=$getval.groupid|}
		</select>
		{|$lang.user|}{|$lang.dkp|}{|$lang.list|}
		<select name="obj" class="input" onchange="javascript:form.submit();">
		{|html_options options=$classArr selected=$getval.obj|}
		</select>
		<input type="text" name="keyword" id="keyword" value="{|$getval.keyword|}" onkeyup="xajax_getInfo(document.getElementById('keyword').value,'user');" />
		<input type="submit" value="{|$lang.user|}{|$lang.search|}">
		</td>
	</tr>
</form>		


  <tr class="contenttitle">
  	<th><a href="{|$baseurl|}&orderby=id">{|$lang.user|}</a></th>
	<th><a href="{|$baseurl|}&orderby=name">{|$lang.user|}{|$lang.name|}</a></th>
	<th><a href="{|$baseurl|}&orderby=workname">{|$lang.work|}</a></th>
	<th><a href="{|$baseurl|}&orderby=racename">{|$lang.race|}</a></th>
	<th><a href="{|$baseurl|}&orderby=level">{|$lang.level|}</a></th>
	<th><a href="{|$baseurl|}&orderby=groupname">{|$lang.group|}</a></th>
	<th>{|$lang.earn|}</th>
	<th>{|$lang.spent|}</th>
	<th><a href="{|$baseurl|}&orderby=rnum">{|$lang.attendance|}{|$lang.times|}</a></th>
	<th><a href="{|$baseurl|}&orderby=raidnum">{|$lang.attendance|}</a></th>
	<th><a href="{|$baseurl|}&orderby=dkpvalue">{|$lang.current|}{|$lang.dkp|}{|$lang.value|}</a></th>
	<th><a href="{|$baseurl|}&orderby=lastraidtime">{|$lang.last|}{|$lang.attendance|}</a></th>
  </tr>

  {|foreach item=val from=$userdata|}
  <tr class="{|cycle values="rowa,rowb"|}">
			<td align="center">{|$val.id|}</td>
			<td><img src="././theme/{|$theme|}/images/rank/rank{|$val.rank|}.gif" border="0" alt="rank{|$val.rank|}"> 
			<a href="?module=index&act=viewmember&id={|$val.id|}" target="_blank" title="rank{|$val.rank|}">{|$val.name|}</a>
			</td>
			<td><font color="#{|$val.wcolor|}">{|$val.workname|}</font></td>
			<td>{|$val.racename|}</td>
			<td align="center">{|$val.level|}</td>
			<td>{|$val.groupname|}</td>
			<td align="center"><font color="green">{|$val.earn|}</font></td>
			<td align="center"><font color="red">{|$val.spent|}</font></td>
			<td align="center">{|$val.rnum|}/{|$raidtotal|}</td>
			<td align="center"><font color="green">{|$val.raidnum|string_format:"%.2f"|}%</font></td>
			<td align="center">
			{|if ($val.dkpvalue < 0)|}
				<b><font color="red">{|$val.dkpvalue|}</font></b>
			{|else|}
				<b><font color="green">{|$val.dkpvalue|}</font></b>
			{|/if|}
			</td>
			<td align="center">{|$val.lastraidtime|}</td>
			</td>
  </tr>
  {|/foreach|}

  <tr>
    <td colspan="9">{|$pageText|}</td>
  </tr>
</table>

<script language="Javascript">
var objInput = document.getElementById('keyword');
var objouter = document.getElementById("citybox");
function getIE(e){
       var t=e.offsetTop;
       var l=e.offsetLeft;
       var w = e.offsetWidth;
       var h = e.offsetHeight;
       while(e=e.offsetParent){
       t+=e.offsetTop;
       l+=e.offsetLeft;
       }
       objouter.style.top = t+h;
       objouter.style.left = l;
}
getIE(objInput);
</script>

{|include file="foot.htm"|}
